/**
 * user模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/utils/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const orders = {
       
    addOrders(params: any) {
        return axios.post(`${base.orders}/addOrders`, qs.stringify(params));
    },
    getOrdersList(params: any){
        return axios.post(`${base.orders}/getOrdersList`, qs.stringify(params));
    },
    deleteOrders(id: any){
        return axios.delete(`${base.orders}/deleteOrders/${id}`);
    },
    deleteOrdersByIds(params: any){
        return axios.post(`${base.orders}/deleteOrdersByIds`, {ids:params});
    },
    getAllOrdersList(params: any){
        return axios.post(`${base.orders}/getAllOrdersList`, qs.stringify(params));
    },
    alipay(params: any){
        return axios.post(`${base.orders}/alipay`,qs.stringify(params));
    },
    paySuccess(id: any){
        return axios.post(`${base.orders}/paySuccess/${id}`);
    },

}

export default orders;